package pers.wy.sell.domain;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * 商品类目
 *
 * @Author: 月落
 * @Date: Created in 14:54 2018/9/4
 */
@Entity
@DynamicUpdate
@Data
public class ProductCategory {

    @Id
    private Integer categoryId;// 类目ID

    private String categoryName; // 类目名称

    private Integer categoryType; // 类目编号

    public ProductCategory() {
    }

    public ProductCategory(String categoryName, Integer categoryType) {
        this.categoryName = categoryName;
        this.categoryType = categoryType;
    }

}
